import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/Home.vue')
  },
  {
    path: '/quality-statistics',
    name: 'QualityStatistics',
    component: () => import('@/views/QualityStatistics.vue')
  },
  {
    path: '/spc-analysis',
    name: 'SPCAnalysis',
    component: () => import('@/views/SPCAnalysis.vue')
  },
  {
    path: '/quality-traceability',
    name: 'QualityTraceability',
    component: () => import('@/views/QualityTraceability.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 